package com.fhz.mvvmtest.food2.viewmodel;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.fhz.mvvmtest.base.BaseViewModel;
import com.fhz.mvvmtest.food.entity.Food;
import com.fhz.mvvmtest.food.repository.FoodRepository;
import com.fhz.mvvmtest.food2.repository.FoodRepository2;

/**
 * 时间:11/15/21
 *
 * @author msfeng
 * 简述: TODO
 */
public class FoodViewModel2 extends BaseViewModel<FoodRepository2> {

    public FoodViewModel2(FoodRepository2 repository) {
        super(repository);
    }

    public LiveData<Food> getFood(){
        return repository.getFood();
    }
}
